set(labwc_sources
  action.c
  buffer.c
  debug.c
  desktop.c
  dnd.c
  edges.c
  foreign.c
  idle.c
  interactive.c
  layers.c
  main.c
  node.c
  osd.c
  output.c
  placement.c
  regions.c
  resistance.c
  seat.c
  server.c
  session-lock.c
  snap.c
  tearing.c
  theme.c
  view.c
  view-impl-common.c
  window-rules.c
  workspaces.c
  xdg.c
  xdg-popup.c
)

if (HAVE_XWAYLAND)
    set(labwc_sources ${labwc_sources}
    xwayland.c
    xwayland-unmanaged.c
  )
endif()


add_subdirectory(button)
add_subdirectory(common)
add_subdirectory(config)
add_subdirectory(decorations)
add_subdirectory(input)
add_subdirectory(menu)
add_subdirectory(ssd)

add_executable(${PROJECT_NAME}
    ${labwc_sources}
    )
target_link_libraries(${PROJECT_NAME}
    PRIVATE
    common
    button
    config
    decorations
    input
    menu
    ssd
    lib_server_protos
    PkgConfig::PIXMAN
    PkgConfig::DRM
    PkgConfig::CAIRO
    PkgConfig::PANGO
    PkgConfig::PANGO_CAIRO
    PkgConfig::WLROOTS
    PkgConfig::INPUT
    )
